package com.lxw.common.valid;

import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.constraints.NotNull;
import java.lang.annotation.*;

@Target({ElementType.METHOD, ElementType.FIELD, ElementType.ANNOTATION_TYPE, ElementType.CONSTRUCTOR, ElementType.PARAMETER, ElementType.TYPE_USE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(
        validatedBy = {EnumConstraintCaliator.class}
)
public  @interface EnumValidate {
    String message() default "{com.lxw.common.valid.EnumValidate.message}";
//    String regexp(); //正则
    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
    int[] values() default {};

}
